function e(e) {
    e = e || 32;
    for (var t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", r = t.length, n = "", o = 0; o < e; o++) n += t.charAt(Math.floor(Math.random() * r));
    return n;
}

function t(e) {
    return e.substring(e.lastIndexOf("."));
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.randomStr = e, exports.getSuffix = t, exports.getRandomName = function(r) {
    return e(28) + Date.now() + t(r);
}, exports.getFileDir = function(e) {
    return ".mp3" === t(e) ? "audio" : "images";
}, exports.getFileName = function(e) {
    if (!e) return e;
    var t = e.substring(r.bucketEndPoint.length);
    return console.log(t), t;
}, exports.getViewUrl = function(e) {
    return r.baseURL + "/view/" + e;
};

var r = require("./config.js");